FROM harbor.ops.xjjtkj.cn/library/debian:buster-slim

ENV TZ=Asia/Shanghai
ENV LANG=C.UTF-8

ADD project-info /app
ADD conf.toml   /conf.toml

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak  \
    && echo "更新阿里源" \
    && echo deb http://mirrors.aliyun.com/debian/ buster main non-free contrib     > /etc/apt/sources.list \
    && echo deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib >> /etc/apt/sources.list \
    && echo deb http://mirrors.aliyun.com/debian-security buster/updates main      >> /etc/apt/sources.list \
    && echo deb-src http://mirrors.aliyun.com/debian-security buster/updates main  >> /etc/apt/sources.list \
    && echo deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib     >> /etc/apt/sources.list \
    && echo deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib >> /etc/apt/sources.list \
    && echo deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib   >> /etc/apt/sources.list \
    && echo deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib  >> /etc/apt/sources.list \
    && echo "安装vim" \
    && apt-get update \
    && apt-get install -y vim \
    && apt-get install -y curl \
    && apt-get install -y wget \
    && apt-get install -y tzdata \
    && apt-get install -y ca-certificates \
    && apt-get clean \
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /

ENTRYPOINT ["/app"]

